FFLAG= -I ../../../../build/release-install-cpp11/include/ -ljsoncpp  -lmuduo_net -lmuduo_base -lpthread 
CFLAG= -L ../../../../build/release-install-cpp11/lib/ -lpthread -std=c++11
all:topic_server publish_client subscribe_client
topic_server:Topic_server.cpp
	g++ -g -o $@ $^ -std=c++11 $(CFLAG) $(FFLAG) -g 
publish_client_client:publish_client.cpp
	g++ -o $@ $^ -std=c++11 $(CFLAG) $(FFLAG) -g
subscribe_client:subscribe_client.cpp
	g++ -o $@ $^ -std=c++11 $(CFLAG) $(FFLAG) -g
.PHONY:clean
clean:
	rm -f topic_server publish_client subscribe_client